import req from "../../utils/request";
import qs from 'qs'

//查询所以操作日志
export function get_OptLog(query) {
    return req({
      url: "/api/getOptLog",
      method: "get",
      params: query,
    });
}
//查询所以登录日志
export function get_getLgnLog(query) {
    return req({
      url: "/api/getLgnLog",
      method: "get",
      params: query,
    });
}
//查询所以操作日志
export function get_OptLogByid(query) {
    return req({
      url: "/api/getOptLogById",
      method: "put",
      data: query,
      headers: {
        'Content-Type': 'application/json'
      },
    });
}
//删除所以操作日志
export function get_deleteByDate(query) {
    return req({
      url: "/api/deleteByDate",
      method: "delete",
      data: qs.stringify(query),
    });
}
//删除登录日志
export function get_delLgnLogByDate(query) {
    return req({
      url: "/api/delLgnLogByDate",
      method: "delete",
      data: qs.stringify(query),
    });
}